﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Bunian.Core.BusinessObjects;
using Bunian.Data;

namespace Bunian.Service
{
    public class BeneficiaryService : IDisposable
    {
        private NHibernateDataContext _context = null;

        public BeneficiaryService()
        {
            _context = new NHibernateDataContext();
        }
      
        public IBeneficiary GetBeneficiaryById(long BeneficiaryId)
        {
            return _context.GetById<IBeneficiary>(BeneficiaryId);
        }

        #region IDisposable Members

        public void Dispose()
        {
            _context.Dispose();
        }

        #endregion
    }
}
